﻿
@{
    ViewBag.Title = "SHBB";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<style>
    /**通用*/
    .tmp-hide { display: none; }
    /*初始隐藏*/
    .absolute-hide { display: none; position: absolute; z-index: 1000; }
    /*两个下拉面板隐藏及定位*/

    /**布局*/
    #h_title { text-align: center; }
    #divSetting { margin-right: 20px; position: relative; }
        #divSetting > div { display: inline-block; }


    #divState { width: 200px; }
    #divPage { width: 272px; }
    #divStatePanel { width: 195px; }
    #divPagePanel { width: 215px; }
    #divPageContent button { width: 56px; }
    /**让颜色板竖排*/
    .sp-palette.sp-thumb.sp-cf { width: 20px; }
    .sp-dd { display: none; }
    .sp-preview { margin-right: 0px !important; }
    /*汇总行也固定高度*/
    #tt > tbody > tr > td { height: 30px; }
    .sql_ct { text-decoration: underline; cursor: pointer; color: #ba2636; }

    #divBbsm { border: 1px solid #ccc; border-radius: 5px; background-color: #f2f2f2; padding: 10px; }
        #divBbsm dt { text-decoration: underline; cursor: pointer; font-size: 18px; -moz-user-select: none; -ms-user-select: none; -webkit-user-select: none; user-select: none; }
</style>
@*暂时写这个，避免日期错位，看以后再升级版本*@
<div class="container-fluid">
    <div id="div4fullscreen">
        <header>
            <h4 id="h_title"></h4>
        </header>
        @*顶部工具条*@
        <div id="queryDiv">
            @*右侧功能区*@
            <div id="divSetting" class="pull-right">
                <div>
                    <div id="divState" class="btn-group btn-group-sm">
                        <button id="btnShowPanel" type="button" class="btn btn-default"><span class="glyphicon glyphicon-chevron-down"></span></button>
                        <button id="btnShowPreMonth" type="button" class="btn btn-default" title="上月数据显示状态" data-on="false">隐</button>
                        <button id="btnShowYTHZ" type="button" class="btn btn-default" title="汇总指标显示状态" data-on="false">隐</button>
                        <button id="btnShowColumn" type="button" class="btn btn-default" title="非采集指标显示状态" data-on="true">显</button>
                        <button id="btnShowNullData" type="button" class="btn btn-default" title="空数据行显示状态" data-on="true">显</button>
                        <button id="span_editCount" type="button" class="btn btn-default" title="数据修改次数,保存后清零！">0</button>
                    </div>
                    <div id="divStatePanel" class="absolute-hide panel panel-default">
                        <div class="panel-body">
                            <div>上月数据状态：<input type="checkbox" id="chkShowPreMonth"></div>
                            <div>汇总指标状态：<input type="checkbox" id="chkShowYTHZ"></div>
                            <div>非采集列状态：<input type="checkbox" id="chkShowColumn" checked></div>
                            <div>空数据行状态：<input type="checkbox" id="chkShowNullData" checked></div>
                            <ul id="ulEditlist" class="list-unstyled"></ul>
                        </div>
                    </div>
                </div>
                <div>
                    <div id="divPage" class="btn-group btn-group-sm">
                        <button id="btnShowPagePanel" type="button" class="btn btn-default"><span class="glyphicon glyphicon-chevron-down"></span></button>
                        <button id="btnPre" class="btn btn-sm btn-default">上一页</button>
                        <button id="btnNext" class="btn btn-sm btn-default">下一页</button>
                        <span title="编辑框背景色"><input type="text" id="inpEditcolor" /></span>
                        <button id="btnFullScreen" class="btn btn-sm btn-default" title="切换报表全屏模式">全&nbsp;&nbsp;屏</button>
                    </div>
                    <div id="divPagePanel" class="absolute-hide panel panel-default">
                        <div class="panel-body">
                            <div id="divPageContent">
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div>
                <span>单位：</span><select id="selDw"></select>
                <span>年月：</span><input id="txtNy" class="nyInput" type="text">
                <button id="btnQuery" class="btn btn-sm btn-default">查询</button>
                <div class="btn-group">
                    <button id="btnCalc" class="btn btn-sm btn-default" title="快速计算最近修改过的行，并向上合并！">保存</button>
                    <button type="button" class="btn btn-sm  btn-default dropdown-toggle" data-toggle="dropdown">
                        <span class="caret"></span>
                        <span class="sr-only">Toggle Dropdown</span>
                    </button>
                    <ul class="dropdown-menu" role="menu" style="min-width:80px">
                        <li>
                            <a id="btnCalcAll" href="#" title="重新计算当前用户下的所有级别数据，跨月时使用！">
                                重新计算
                            </a>
                        </li>
                    </ul>
                </div>
                <div class="btn-group" id="grpMNTB">
                    <button id="btnMNTB" class="btn btn-sm btn-default">模拟填报</button>
                    <button id="btnMNTBSM" class="btn btn-sm btn-default">说明</button>
                </div>
                @*重新计算时，加载图片*@
                <span><img id="img_loading" class="tmp-hide" src="/images/load_square.gif" /></span>
            </div>

        </div>
        @*报表*@
        <div id="tblDiv" class="autotableWrap">
            <table id="tt"></table>
            <div id="divBbsm" class="well well-lg">
            </div>
        </div>
        @*校验结果、穿透以及模拟填报说明的弹出框*@
        <table id="tbl_jy" class="tmp-hide"></table>
        <div id="div_ct" class="tmp-hide">
            <table id="tbl_ct"></table>
        </div>
        <div id="div_mntbsm" class="tmp-hide">
            <h5>模拟填报是将汇总后的指标数据，模拟人工操作，将其依次复制到填写的文本框内，操作流程：</h5>
            <ol>
                <li>让右上的功能栏里第二个按钮为显示状态，要让<span class="red">填报行和汇总行</span>同时显示！</li>
                <li>如果是表4，表14这种多行的大表，要在分页那里，显示全部。</li>
                <li>点击<span class="red">模拟填报</span>按钮。</li>
            </ol>
            <span>原理：遍历每一个输入框，然后比较它上面那一行的值是否相同，不一样则模拟填报。为防止同时填写大量数据，系统进行适当的延时！</span>
        </div>
    </div>
</div>
@section scripts{
    <link href="~/Scripts/bootstrap-switch-master/dist/css/bootstrap3/bootstrap-switch.min.css" rel="stylesheet" />
    <script src="~/Scripts/bootstrap-switch-master/dist/js/bootstrap-switch.min.js"></script>
    <script src="~/Scripts/screenfull/dist/screenfull.min.js"></script>
    <link href="~/Scripts/spectrum-master/spectrum.css" rel="stylesheet" />
    <script src="~/Scripts/spectrum-master/spectrum.js"></script>

    <script src="~/appts/FGSBT.js"></script>
    <script src="~/appts/shbb.js"></script>
}
